<template>
	<view class="personal-list">
		<view class="video-list">
			<view class="item" v-for="item in personalList" :key="item.id" @click="playerTo(personalList)">
				<video class="love-video" :src="item.src"
				 objectFit="cover" muted autoplay :controls="false"></video>
				<view class="love-box">
					<text class="iconfont iconaixin1 love-icon">{{item.loveNumber}}</text>
				</view>
			</view>
		</view>
		<view class="more">
			没有更多了
		</view>
	</view>
</template>

<script>
	export default {
		props:['personalList'],
		data() {
			return {
				
			};
		},
		methods:{
			playerTo(list) {
				uni.setStorage({
					key: 'videoList',
					data: list
				})
				uni.navigateTo({
					url: '/pages/player/player'
				})
			}
		}
	}
</script>

<style lang="scss">
	

	.personal-list {
		color: #ffffff;
		width: 100%;
		overflow: hidden;
		background-color: #000000;
		padding: 0 0.5%;
		padding-bottom: 55px;
		.video-list{
			width: 100%;
			display: flex;
			flex-wrap: wrap;
			display: -webkit-flex;
		}
		.item {
			width: 33%;
			height: 120px;
			position: relative;
			.love-video {
				width: 100%;
				height: 100%;
			}

			.love-box {
				position: absolute;
				bottom: 5px;
				left: 10px;

				.love-icon {
					font-size: 14px;
					color: #ffffff;
				}
			}
		}
		.more {
			width: 100%;
			height: 30px;
			line-height: 30px;
			text-align: center;
			font-size: 12px;
			color: #999999;
		}
	}
</style>
